<% layout('/layouts/default.html', {title: '待办事项表管理', libs: ['dataGrid']}){ %>
<div class="main-content">
	<div class="box box-main">
		<div class="box-header">
			<div class="box-title">
				<i class="fa icon-notebook"></i> ${text('待办事项表管理')}
			</div>
			<div class="box-tools pull-right">
				<a href="#" class="btn btn-default" id="btnSearch" title="${text('查询')}"><i class="fa fa-filter"></i> ${text('查询')}</a>
				<% if(hasPermi('backlog:dcSupBacklog:edit')){ %>
					<a href="${ctx}/backlog/dcSupBacklog/form" class="btn btn-default btnTool" title="${text('新增待办事项表')}"><i class="fa fa-plus"></i> ${text('新增')}</a>
				<% } %>
				<a href="#" class="btn btn-default" id="btnSetting" title="${text('设置')}"><i class="fa fa-navicon"></i></a>
			</div>
		</div>
		<div class="box-body">
			<#form:form id="searchForm" model="${dcSupBacklog}" action="${ctx}/backlog/dcSupBacklog/listData" method="post" class="form-inline hide"
					data-page-no="${parameter.pageNo}" data-page-size="${parameter.pageSize}" data-order-by="${parameter.orderBy}">
				<div class="form-group">
					<label class="control-label">${text('待办类型1')}：</label>
					<div class="control-inline">
						<#form:input path="backlogType1" maxlength="10" class="form-control width-120"/>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label">${text('待办类型2')}：</label>
					<div class="control-inline">
						<#form:input path="backlogType2" maxlength="10" class="form-control width-120"/>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label">${text('待办标题')}：</label>
					<div class="control-inline">
						<#form:input path="backlogTitle" maxlength="200" class="form-control width-120"/>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label">${text('待办内容')}：</label>
					<div class="control-inline">
						<#form:input path="backlogContent" class="form-control width-120"/>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label">${text('标识字段1')}：</label>
					<div class="control-inline">
						<#form:input path="bizKey" maxlength="64" class="form-control width-120"/>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label">${text('标识字段2')}：</label>
					<div class="control-inline">
						<#form:input path="bizType" maxlength="64" class="form-control width-120"/>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label">${text('待办布置人编号')}：</label>
					<div class="control-inline">
						<#form:input path="sendUserCode" maxlength="64" class="form-control width-120"/>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label">${text('待办布置人名称')}：</label>
					<div class="control-inline">
						<#form:input path="sendUserName" maxlength="64" class="form-control width-120"/>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label">${text('待办受理人编号')}：</label>
					<div class="control-inline">
						<#form:input path="receiveUserCode" class="form-control width-120"/>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label">${text('数据类型')}：</label>
					<div class="control-inline">
						<#form:input path="dataType" maxlength="10" class="form-control width-120"/>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label">${text('数据状态')}：</label>
					<div class="control-inline">
						<#form:input path="dataStatus" maxlength="10" class="form-control width-120"/>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label">${text('待办类型3')}：</label>
					<div class="control-inline">
						<#form:input path="backlogType3" maxlength="10" class="form-control width-120"/>
					</div>
				</div>
				<div class="form-group">
					<button type="submit" class="btn btn-primary btn-sm">${text('查询')}</button>
					<button type="reset" class="btn btn-default btn-sm">${text('重置')}</button>
				</div>
			</#form:form>
			<table id="dataGrid"></table>
			<div id="dataGridPage"></div>
		</div>
	</div>
</div>
<% } %>
<script>
// 初始化DataGrid对象
$('#dataGrid').dataGrid({
	searchForm: $("#searchForm"),
	columnModel: [
		{header:'${text("待办类型1")}', name:'backlogType1', index:'a.backlog_type1', width:150, align:"left", frozen:true, formatter: function(val, obj, row, act){
			return '<a href="${ctx}/backlog/dcSupBacklog/form?id='+row.id+'" class="btnList" data-title="${text("编辑待办事项表")}">'+(val||row.id)+'</a>';
		}},
		{header:'${text("待办类型2")}', name:'backlogType2', index:'a.backlog_type2', width:150, align:"left"},
		{header:'${text("待办标题")}', name:'backlogTitle', index:'a.backlog_title', width:150, align:"left"},
		{header:'${text("待办内容")}', name:'backlogContent', index:'a.backlog_content', width:150, align:"left"},
		{header:'${text("跳转的地址链接")}', name:'backlogHref', index:'a.backlog_href', width:150, align:"left"},
		{header:'${text("机构编码")}', name:'orgCode', index:'a.org_code', width:150, align:"left"},
		{header:'${text("标识字段1")}', name:'bizKey', index:'a.biz_key', width:150, align:"left"},
		{header:'${text("标识字段2")}', name:'bizType', index:'a.biz_type', width:150, align:"left"},
		{header:'${text("待办布置人编号")}', name:'sendUserCode', index:'a.send_user_code', width:150, align:"left"},
		{header:'${text("待办布置人名称")}', name:'sendUserName', index:'a.send_user_name', width:150, align:"left"},
		{header:'${text("待办受理人编号")}', name:'receiveUserCode', index:'a.receive_user_code', width:150, align:"left"},
		{header:'${text("数据类型")}', name:'dataType', index:'a.data_type', width:150, align:"left"},
		{header:'${text("数据状态")}', name:'dataStatus', index:'a.data_status', width:150, align:"left"},
		{header:'${text("待办类型3")}', name:'backlogType3', index:'a.backlog_type3', width:150, align:"left"},
		{header:'${text("操作")}', name:'actions', width:120, formatter: function(val, obj, row, act){
			var actions = [];
			<% if(hasPermi('backlog:dcSupBacklog:edit')){ %>
				actions.push('<a href="${ctx}/backlog/dcSupBacklog/form?id='+row.id+'" class="btnList" title="${text("编辑待办事项表")}"><i class="fa fa-pencil"></i></a>&nbsp;');
				actions.push('<a href="${ctx}/backlog/dcSupBacklog/delete?id='+row.id+'" class="btnList" title="${text("删除待办事项表")}" data-confirm="${text("确认要删除该待办事项表吗？")}"><i class="fa fa-trash-o"></i></a>&nbsp;');
			<% } %>
			return actions.join('');
		}}
	],
	// 加载成功后执行事件
	ajaxSuccess: function(data){
		
	}
});
</script>